package org.recruit.system.domain;

import java.util.Date;

/**
 * 文章对象 article
 *
 * @author teapot
 * @date 2020-11-12
 */
public class Article {
    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 标题
     */
    private String articleTitle;

    /**
     * 发表时间
     */
    private Date articleDate;

    /**
     * 关键字
     */
    private String articleKey;

    /**
     * 内容
     */
    private String articleContent;

    /**
     * 点击数
     */
    private Long articleReadNum;

    /**
     * 点赞数
     */
    private Long articleZanNum;

    /**
     * 状态
     * 1.待审核（默认） 2.审核成功 3.审核失败 4.隐藏
     */
    private Long articleStatus;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleDate(Date articleDate) {
        this.articleDate = articleDate;
    }

    public Date getArticleDate() {
        return articleDate;
    }

    public void setArticleKey(String articleKey) {
        this.articleKey = articleKey;
    }

    public String getArticleKey() {
        return articleKey;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent;
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleReadNum(Long articleReadNum) {
        this.articleReadNum = articleReadNum;
    }

    public Long getArticleReadNum() {
        return articleReadNum;
    }

    public void setArticleZanNum(Long articleZanNum) {
        this.articleZanNum = articleZanNum;
    }

    public Long getArticleZanNum() {
        return articleZanNum;
    }

    public void setArticleStatus(Long articleStatus) {
        this.articleStatus = articleStatus;
    }

    public Long getArticleStatus() {
        return articleStatus;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", userId=" + userId +
                ", articleTitle='" + articleTitle + '\'' +
                ", articleDate=" + articleDate +
                ", articleKey='" + articleKey + '\'' +
                ", articleContent='" + articleContent + '\'' +
                ", articleReadNum=" + articleReadNum +
                ", articleZanNum=" + articleZanNum +
                ", articleStatus=" + articleStatus +
                '}';
    }
}
